<?php $this->assign("title", "Agregar Recorrido"); ?>
<?php
	$this->start('css');

	echo $this->Html->css('select2/select2.css');

	$this->end();

	$this->start('script');

	echo $this->Html->script('select2.min');
	echo $this->Html->script('select2_locale_es');
	echo $this->Html->script('Recorridos/recorridos.min');

	$this->end();

	$this->Js->set('horarios', $horarios);
	$this->Js->set('rutas', $rutas);
	$this->Js->set('buses', $buses);
?>
<h2>Agregar Recorrido</h2>
<?php
	echo $this->Form->create('Recorrido');

	echo $this->Form->input('Ruta.id_ruta', array("label" => "Ruta", "type" => "text"));
	echo $this->Form->input('Horario.id_horario', array("label" => "Horario", "type" => "text"));
	echo $this->Form->input('Bus.id_bus', array("label" => "Bus", "type" => "text"));

	echo $this->Form->end('Guardar Recorrido');
?>